<script setup lang="ts">
import {useCounterStore} from "@/stores/counter";

const onClickLeft = () => history.back();
const phone=useCounterStore()
</script>

<template>
<div>
      <div>
          <van-nav-bar
                  left-text="手机号设置"
                  left-arrow
                  @click-left="onClickLeft"
          />
          <div class="phone">
                <div>当前手机号</div>
                <div class="colo">{{phone.userInfo.phoneNumber}}</div>
          </div>
          <div class="bxin">
              <router-link to="/genghuanshoujihao"><button>更换手机号</button></router-link>
          </div>
      </div>
</div>
</template>

<style scoped lang="less">
:deep(.van-nav-bar__content){
    background-color: #f4f4f4;
}
.phone{
    width: 100%;
    height:100px;
    padding: 10px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    .colo{
        color: gray;
    }
}
.bxin{
    text-align:center;
    button{
        width: 60%;
        height: 40px;
        margin: 20px auto;
        background-color: #1c94fc;
        color: white;
        border:none;
        border-radius: 3px;
    }
}

</style>